using System;
using System.Collections.Generic;
using System.Text;

namespace Dominio
{
    public class Question
    {
        private int id;
        private User author;
        private String subject;
        private String description;
        private IList<Answer> answerList;
        private DateTime creation;
        private Bug bug;
        private User destiny;

        //Empty constructor used by hibernate
        public Question()
        {}

        public Question(String subject, String description, User author, Bug bug, User destiny)
        {
            this.Author = author;
            this.Subject = subject;
            this.Description = description;
            this.Creation = DateTime.Now;
            this.Bug = bug;
            this.Destiny = destiny;
        }


        #region getters and Setters
        public virtual int Id
        {
            get { return id; }
            set { id = value; }
        }

        public virtual User Author
        {
            get { return author; }
            set { author = value; }
        }
        public virtual User Destiny
        {
            get { return destiny; }
            set { destiny = value; }
        }
        public virtual Bug Bug
        {
            get { return bug; }
            set { bug = value; }
        }

        public virtual String Description
        {
            get { return description; }
            set { description = value; }

        }
        public virtual String Subject
        {
            get { return subject; }
            set { subject = value; }
        }


        public virtual IList<Answer> AnswerList
        {
            get { return answerList; }
            set { answerList = value; }
        }

        public virtual DateTime Creation
        {
            get { return creation; }
            set { creation = value; }
        } 
        #endregion

    }
}
